package Day31;

public class HomeWork4 {
    public static void main(String[] args) {

        Week[] week = Week.values();
        for(int i = 0 ; i < week.length; i++){
            System.out.println(week[i].getName());
        }


    }
}

enum Week{

    MONDAY("星期一"),TUESDAY("星期二"),WEDSDAY("星期三"),
    THURSDAY("星期四"),FRIDAY("星期五"),SATDAY("星期六"),SUNDAY("星期天");


    private String name;
    private Week(){

    }

    private Week(String name){
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
